package com.shermanzhou.springbootflowable.demo.flow2;

import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author zhouchaoqun02
 * @date 2020-07-11 15:56
 */
@Data
@Builder
public class EngineApprovalFlowResult {
    private String rootFlowId;
    // 流程集合，包括子流程。key: flowId, value: 对应审批流的起始节点的nodeId
    private Map<String, String> flowStartNodeMap;
    // 节点-子流程映射。 key: nodeId, value: subFlowIds,节点的子流程实例的flowId列表
    private Map<String, List<String>> subFlowsMap;
    // 节点-后续节点映射。key: nodeId, value: nextNodeIds,节点的后续节点的nodeId列表
    private Map<String, List<String>> outGoingsMap;
    // 节点ID-节点对象映射。key: nodeId, value: 节点对象实例
    private Map<String, EngineApprovalFlowNode2> nodeMap;


}
